<?php

namespace app\api\service\wanlshop;
use think\Model;
use app\admin\model\Activity as ActivityModel;
use app\api\model\wanlshop\Goods;
class Activity extends Model
{
    // 活动model
    protected $activityModel = null;
    // 商品model
    protected $goodsModel = null;
    public function __construct($data = [])
    {
        parent::__construct($data);
        $this->activityModel = new ActivityModel();
        $this->goodsModel = new Goods();
    }


    /**
     *  活动列表
     */

    public function activityListService()
    {
        // 活动实例
        $response = $this->activityModel->getList();
        return $response;
    }

    /**
     *  活动商品列表
     */

    public function activityGoodsListService($params)
    {
        $response = $this->goodsModel->getActivityGoodsList($params);
        return $response;

    }
}
